import { createApp } from 'vue'
import pinia from './stores'
import App from './App.vue'
import router from './router'

// markdown编辑器
import VMdEditor from '@kangc/v-md-editor'
import '@kangc/v-md-editor/lib/style/base-editor.css'
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js'
import '@kangc/v-md-editor/lib/theme/style/github.css'
import hljs from 'highlight.js' // highlightjs

VMdEditor.use(githubTheme, {
  Hljs: hljs
})

// markdown 预览 markdown解析需要的配置项目
import VMdPreview from '@kangc/v-md-editor/lib/preview'
// import '@kangc/v-md-editor/lib/style/preview.css'
// import githubTheme from '@kangc/v-md-editor/lib/theme/github';
import '@kangc/v-md-editor/lib/theme/style/github.css'
// import hljs from 'highlight.js';

VMdPreview.use(githubTheme, {
  Hljs: hljs
})

const app = createApp(App)
app.use(VMdEditor)
app.use(VMdPreview)
app.use(pinia)
app.use(router)

app.mount('#app')
